package finance

import grails.test.*

class SimulationIntegrationTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSaveAndDelete() {
		def simulation = new Simulation(name : "sim1", description : " first test")
		assertNotNull simulation.save()
		
		def foundSimulation = Simulation.get(simulation.id)
		foundSimulation.delete()
		
		assertFalse Simulation.exists(foundSimulation.id)
    }
}
